package com.bussiness.xutai.service.impl;


import com.bussiness.xutai.bean.Admin;
import com.bussiness.xutai.mapper.AdminMapper;
import com.bussiness.xutai.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminServiceImpl implements AdminService {

    @Autowired
    AdminMapper adminMapper;

    @Override
    public Admin getAdminByAccount(String account) {
        return adminMapper.selectAdminByAccount(account);
    }

    @Override
    public int getCount(String account) {
        return adminMapper.selectCount(account);
    }

    @Override
    public boolean saveAdmin(Admin admin) {
        return adminMapper.insertAdmin(admin);
    }
}
